package com.platform.service;

import com.platform.entity.MaterielEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-13 10:41:09
 */
public interface MaterielService {
    List<MaterielEntity> queryList(Map<String, Object> map);
    int queryTotal(Map<String, Object> map);
    MaterielEntity queryObject(Integer id);
    int save(MaterielEntity materiel);
    int update(MaterielEntity materiel);
    int delete(Integer id);
    //根据主键批量删除
    int deleteBatch(Integer[] ids);
    //商品从回收站恢复
    int back(Integer[] ids);

    boolean batchImport(String name,MultipartFile file);
}
